import { getRequest, postRequest, newPostRequest } from "../utils/request.js" //引用request

// 业内资讯列表
export const industry = data => getRequest(`/industry`, data);

// 业内资讯详情
export const industryById = id => getRequest(`/industry/${id}`);

// 经验分享列表
export const experience = data => getRequest(`/experience`, data);

// 发布经验
export const experiencePublish = data => postRequest(`/experience`, data);

// 经验分享详情
export const experienceById = id => getRequest(`/experience/${id}`);

// 点赞/取消点赞
export const give_like = data => postRequest(`/give_like`, data);

// 点赞圈子
export const like = data => newPostRequest(`/experience/like`, data);

// 评论圈子
export const comment = data => postRequest(`/experience/comment`, data);

// 分享圈子
export const share = data => postRequest(`/experience/share`, data);

// 圈子详情评论点赞
export const commentLike = data => postRequest(`/experience/comment/like`, data);

